import java.awt.Rectangle;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.TitledBorder;


public class ProduceReportGUI extends JFrame{
	
	private JButton getComplaintStat = null;
	private JButton getArchiveStat = null;
	private JButton getPackageUsage = null;
	private JPanel contentPane=null;
	
	public ProduceReportGUI()
	{
		super();
	    JPanel contentPane=new JPanel();
	    contentPane.setBorder(new TitledBorder(null, "Produce Report", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		
		   //Main Window panel 
	    contentPane.setLayout(null);
	    contentPane.setOpaque(true);
	    contentPane.add(getComplaintStat());
	    contentPane.add(getArchiveStat());   	
	    contentPane.add(getPackageUsage());


		  //Frame
	        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	        this.setTitle("Produce report window");
	        this.setContentPane(contentPane);  
		    this.setLocationRelativeTo(null); //This will center the JFrame in the middle of the screen
	        this.setLocationByPlatform(true);
	        this.setSize(593, 265);
	        this.setVisible( true ); // display frame
	
	}
	
	
	/**
	 * This method initializes Complaint Stats Photo Button	
	 */
	private JButton getComplaintStat() {
		if (getComplaintStat == null) {
			getComplaintStat = new JButton();
			getComplaintStat.setBounds(new Rectangle(10, 76, 161, 45));
			getComplaintStat.setText("Complaint Stats");
			getComplaintStat.addActionListener(new java.awt.event.ActionListener() 
			{
				public void actionPerformed(java.awt.event.ActionEvent e) 
				{
									
				}
			});
		}
		return getComplaintStat;
	}
	
	/**
	 * This method initializes Archive Stats Button	
	 */
	private JButton getArchiveStat() {
		if (getArchiveStat == null) {
			getArchiveStat = new JButton();
			getArchiveStat.setBounds(new Rectangle(204, 76, 161, 45));
			getArchiveStat.setText("Archive Stats");
			getArchiveStat.addActionListener(new java.awt.event.ActionListener() 
			{
				public void actionPerformed(java.awt.event.ActionEvent e) 
				{
					
				}
			});
		}
		return getArchiveStat;
	}
	
	/**
	 * This method initializes Package Usages Button	
	 */	
	private JButton getPackageUsage() {
		if (getPackageUsage == null) {
			getPackageUsage = new JButton();
			getPackageUsage.setBounds(new Rectangle(395, 76, 161, 45));
			getPackageUsage.setText("Package Usages");
			getPackageUsage.addActionListener(new java.awt.event.ActionListener() 
			{
				public void actionPerformed(java.awt.event.ActionEvent e) 
				{
					
				}
			});
		}
		return getPackageUsage;
	}
}
